<script>
	export default {
		globalData: {
			datalist: [{
				nid: "T15627", // 与组件props命名一致
				newstype: 1, // 无图
				title: "14个月从100家开到1000家门店，蜜雪冰城为何买下这家精酿啤酒商",
				isTop: true,
				author: "界面新闻",
				comments: 56,
				time: "2025.10.07",
				imagelist: ["/static/newsimage/news1.png"],
				showSearch: false, // 补充默认值
				bgColor: "#fff" // 补充默认值
			}, {
				nid: "B4485",
				title: "把握历史大势 共创美好未来（观沧海）",
				isTop: true,
				newstype: 2, // 单图
				author: "人民日报",
				comments: 1025,
				time: "2025.10.25",
				imagelist: ["/static/newsimage/news2.png"],
				showSearch: false,
				bgColor: "#fff"
			}, {
				nid: "S681421",
				newstype: 2, // 单图
				title: "黄金还能走多远？卖方高呼“第三浪启动”，230多份研报看多",
				isTop: false,
				author: "财联社",
				comments: 452,
				time: "2025.10.08",
				showSearch: true,
				imagelist: ["/static/newsimage/news3ss.png"],
				bgColor: "#fff"
			}, {
				nid: "a145892",
				newstype: 3, // 多图（广告）
				title: "加微信交友群，喜欢就聊，找喜欢的人",
				author: "我主良缘文化",
				time: "2025.10.08 09:50",
				bgColor: "#fee",
				imagelist: [
					"/static/ad/a1.png",
					"/static/ad/a2333.png",
					"/static/ad/a3.png"
				],
				isTop: false, // 补充默认值
				comments: 0, // 补充默认值
				showSearch: false
			}, {
				nid: "n12458",
				newstype: 2, // 单图
				title: "“没有短板”的完美战鹰！歼-16机库独家探访",
				isTop: false,
				author: "红星新闻",
				comments: 56,
				time: "2025.10.07",
				showSearch: false,
				imagelist: ["/static/newsimage/news5.png"],
				bgColor: "#fff"
			}, {
				nid: "q36541",
				newstype: 1, // 无图
				title: "多国学者共探巴克特里亚考古 携手推进丝绸之路文明研究新进程",
				isTop: false,
				author: "中国日报网",
				comments: 56,
				time: "2025.10.12",
				showSearch: false,
				imagelist: [], // 修正空数组，避免无效路径
				bgColor: "#fff"
			}]
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		onError: function(e) {
			console.error("APPvuew---------------onError: " + e); // 修正大小写，保持控制台输出一致性
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>